
{% for item in units %}
						<tr data-tt-id="{{item.id}}" data-tt-parent-id="{{'' if item.pid==0 else item.pid}}" data-tt-branch="{{'true' if item.hasChildren==1 else 'false'}}">
							<td>
								<span class="pd-l-sm"></span> {{item.name}}
							</td>
							<td>
								{{item.address}}
							</td>
							<td>
								{{item.mobile}}
							</td>
							<td>
								{{item.tel}}
							</td>
							<td>
								<div class="btn-group">
									<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                  <i class="ti-settings"></i>
                  <span class="ti-angle-down"></span>
                </button>
									<ul class="dropdown-menu" role="menu">
										<li>
											<a href="/system/unit/detail?id={{item.id}}" data-toggle="modal" data-target="#dialogUnitDetail">查看</a>
										</li>
										<li>
											<a href="/system/unit/edit?id={{item.id}}" data-pjax>修改</a>
										</li>
										<li>
											<a href="javascript:;" onclick="del({{item.id}})">删除</a>
										</li>
										<li class="divider"></li>
										<li>
											<a href="/system/unit/add?pid={{item.id}}" data-pjax>添加子机构</a>
										</li>

									</ul>
								</div>
							</td>
						</tr>
						
{% endfor %}
